Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photometry Magnitude Dtype Change #129

Merged
merged 11 commits into from
Nov 15, 2024
Merged

Conversation

SherelynA
Copy link
Collaborator

@SherelynA SherelynA commented Nov 14, 2024

Changing the photometry magnitude dtype to be np.float32, so that a magnitude value of 23.93 won't change to 23.94 like it was with the previously set np.float16. This Fixes #128

@SherelynA SherelynA requested a review from kelle November 14, 2024 06:28
@SherelynA SherelynA self-assigned this Nov 14, 2024
@SherelynA
Copy link
Collaborator Author

@kelle I added the test, which should fail with the current version of the code but not with the change to dtype32.

@SherelynA SherelynA requested a review from hover2pi November 15, 2024 02:06
Copy link
Member

@kelle kelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I modified the tests a bit and converted more values from float16 to float32.

@kelle kelle merged commit d11396f into BDNYC:main Nov 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current dtype of photometry changes the values.
2 participants